package com.daoliuhe.scaffold.model;

import java.io.Serializable;

public class User extends Pagable implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -9089330294081047991L;

	private String id;

	private String loginId;

	private String userPassword;

	private String userName;
	
	private boolean rememberMe;
	
	/**
	 * 用户名拼音
	 */
	private String userNamePY;

	private String deptNumber;

	private String deptName;

	private String productLine;
	
	/**
	 * productLine存的是id的集合,productLineStr为转换成产品线的名称
	 */
	private String productLineStr;

	private String loginType;

	/**
	 * 页面显示模式 0:常用模式(字段少) 1:经典模式(字段多)
	 */
	private String pattern;
	
	private String enabled;

	private String mobile;

	private String email;

	private String createTime;

	private String updateTime;
	
	/**
	 * 查找用户的查询条件
	 */
	private String qLoginIdOrUserName;
	
	/**
	 * 最后展示的名称
	 */
	private String showName;
	
	/**
	 * 项目编号的id
	 */
	private String projectId;

	public String getShowName() {
		return String.format("%s (%s)", getUserName(), getLoginId());
	}

	public void setShowName(String showName) {
		this.showName = showName;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDeptNumber() {
		return deptNumber;
	}

	public void setDeptNumber(String deptNumber) {
		this.deptNumber = deptNumber;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getProductLine() {
		return productLine;
	}

	public void setProductLine(String productLine) {
		this.productLine = productLine;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}

	public String getEnabled() {
		return enabled;
	}

	public void setEnabled(String enabled) {
		this.enabled = enabled;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getUserNamePY() {
		return userNamePY;
	}

	public void setUserNamePY(String userNamePY) {
		this.userNamePY = userNamePY;
	}

	public String getProductLineStr() {
		return productLineStr;
	}

	public void setProductLineStr(String productLineStr) {
		this.productLineStr = productLineStr;
	}

	public String getPattern() {
		return pattern;
	}

	public void setPattern(String pattern) {
		this.pattern = pattern;
	}

	public String getqLoginIdOrUserName() {
		return qLoginIdOrUserName;
	}

	public void setqLoginIdOrUserName(String qLoginIdOrUserName) {
		this.qLoginIdOrUserName = qLoginIdOrUserName;
	}

	public boolean isRememberMe() {
		return rememberMe;
	}

	public void setRememberMe(boolean rememberMe) {
		this.rememberMe = rememberMe;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", loginId=" + loginId + ", userPassword=" + userPassword + ", userName=" + userName
				+ ", rememberMe=" + rememberMe + ", userNamePY=" + userNamePY + ", deptNumber=" + deptNumber
				+ ", deptName=" + deptName + ", productLine=" + productLine + ", productLineStr=" + productLineStr
				+ ", loginType=" + loginType + ", pattern=" + pattern + ", enabled=" + enabled + ", mobile=" + mobile
				+ ", email=" + email + ", createTime=" + createTime + ", updateTime=" + updateTime
				+ ", qLoginIdOrUserName=" + qLoginIdOrUserName + ", showName=" + showName + ", projectId=" + projectId + "]";
	}
	
}